package persistent.prestige.console.threadmode.t3;

import java.io.Serializable;

import persistent.prestige.console.threadmode.t3.channel.Channel;

/**
 * Nio task
 * 
 * @author dingwei2
 * 
 */
public class NioTask implements Serializable {

	private Channel sc;
	
	private int op;
	private Object data;

	public NioTask(Channel sc, int op) {
		this.sc = sc;
		this.op = op;
	}

	public NioTask(Channel sc, int op, Object data) {
		this(sc, op);
		this.data = data;
	}

	public Channel getSc() {
		return sc;
	}

	public void setSc(Channel sc) {
		this.sc = sc;
	}

	public int getOp() {
		return op;
	}

	public void setOp(int op) {
		this.op = op;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}